<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2022/1/20
  Time: 10:53
  To change this template use File | Settings | File Templates.
--%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <form action="/stusys/stuServlet" method="post">
        学生姓名:<input type="text" name="sname">
        学生年龄:<input type="number" name="sage">
        学生性别:<input type="text" name="ssex">
        <input type="submit" value="查询"><br/>
    </form>
    <a href="index.jsp">返回</a>
    <table border="1px">
        <tr>
            <td>学号</td>
            <td>姓名</td>
            <td>年龄</td>
            <td>性别</td>
            <td>money</td>
            <td>班级</td>
            <td>班主任</td>
        </tr>
        <c:forEach items="${stus}" var="stu">
        <tr>
            <td>${stu.sid}</td>
            <td>${stu.sname}</td>
            <td>${stu.sage}</td>
            <td>${stu.ssex}</td>
            <td>${stu.smoney}</td>
            <td>${stu.clas.cname}</td>
            <td>${stu.clas.cteacher}</td>
        </tr>
        </c:forEach>
    </table>
</body>
</html>
